package com.example.demo.service;

import com.example.demo.entity.HistoryEntity;
import com.example.demo.vo.HistoryVo;

import java.util.List;

public interface HistoryService {
    List<HistoryEntity> getUserHistory(int user_id);
    int addHistory(HistoryVo historyVo);
    int deleteHistory(int id);
    int deleteHistoryByUserAndProduct(int user_id, int products_id);
    HistoryEntity getHistoryById(int id);
    int updateHistory(HistoryVo historyVo);
}